<template>
  <div>
    <div class="header">
      <h4>机构概述</h4>
    </div>
    <div class="contentLeft">

      <div class="contentLeft_left">
        <p class="title">{{ list.organName }}</p>
        <p class="info">地址：{{ list.organAddress }}</p>
        <p class="info">负责人：{{ list.principal }}{{ list.phone }}</p>
        <el-button type="warning">查看营业部分布</el-button>
      </div>
      <div class="line" />
      <div class="contentLeft_right">
        <div class="item">
          <p>分拣中心(个)</p>
          <span class="num">{{ list.sortingCenterNumber }}</span>
        </div>
        <div class="item">
          <p>营业部(个)</p>
          <span class="num">{{ list.agencyNumber }}</span>
        </div>
        <div class="item">
          <p>司机人数(个)</p>
          <span class="num">{{ list.driverNumber }}</span>
        </div>
        <div class="item">
          <p>快递员人数(个)</p>
          <span class="num">{{ list.courierNumber }}</span>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import { mapGetters } from 'vuex'
mapGetters
export default {

  data() {
    return {

    }
  },
  computed: {
    ...mapGetters('dashboard', ['listData']),
    list() {
      return this.listData.organOverview ? this.listData.organOverview : {}
    }
  }

}

</script>

<style lang="scss" scoped>

.contentLeft{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 10px;
  height: 100%;
  width: 100%;
.contentLeft_left{
    width: 50%;
    margin-top: 20px;
}
.contentLeft_right{
  width: 45%;
  padding-left: 5%;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  .item{
    width: 45%;
    height: 85px;
    p{
      font-size: 14px;
    margin-bottom: 10px;
    }

    .num{
      width: 79px;
      height: 36px;
      font-size: 32px;
    font-weight: 700;
    color: #e15536;
    cursor: pointer;
    }
  }
}
}
.header{
    h4{
        margin: 0;
    }
}
.line{
    &::after{
        transform: translate(-10%,0);
        height: 100%;
        display: inline-block;
        margin-left: 5%;
        content: '';
        border: 1px solid #999;
        transform: scaleX(.3);
    }
}

.title{
    margin: 0;
    font-size: 16px;
    margin-top: 10px;
    margin-bottom: 13px;
}
.info{
    font-size: 14px;
    color: #818693;
}
.el-button{
    margin-top: 10px;
}
</style>
